<%@ tag %>
<%@ attribute name="formTitleKey" required="true" %>
<%@ attribute name="formInstructionsKey" required="false" %>
<%@ attribute name="formErrorHeadingKey" required="false" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="/spring" %>

    <c:if test="${empty formInstructionsKey}">
      <c:set var="formInstructionsKey" value="reportCriteria.userInstructions"/>
    </c:if>

    <c:if test="${empty formErrorHeadingKey}">
      <c:set var="formErrorHeadingKey" value="error.heading"/>
    </c:if>
    
<html>
    <head>
        <title><fmt:message key="${formTitleKey}"/></title>
        <jsp:include page="style.css"/>
    </head>

    <body>
        <div id="Header"></div>
        <div id="Content">
            <center>
            <h2 class="title"><fmt:message key="${formTitleKey}"/></h2>
            <p/>
            <form:form method="POST" commandName="queryParams">       
                <span class="userInstructions"><fmt:message key="${formInstructionsKey}"/></span>                
                <table border="0" cellpadding="3" cellspacing="0">               
                    <spring:hasBindErrors name="queryParams">
                    <tr>
                        <td colspan=2 class="validationError"><b><fmt:message key="${formErrorHeadingKey}"/></b></td>
                    </tr>
                    </spring:hasBindErrors>
        
                    <jsp:doBody/>
        
                    <tr>
                        <td>&nbsp;</td>
                        <td align="center"><input type=submit value="submit"></td>
                    </tr>
                </table>
            </form:form>
            </center>
        </div>
    </body>
</html>